import request from '@/utils/request';
// list
export const xinwentongzhiList = (params) => {
  return request({
    url: '/admin/xinwentongzhi/page',
    method: 'post',
    data: params,
  })
};
export const xinwentongzhiDetail = (id) => {
  return request({
    url: '/admin/xinwentongzhi/' + id,
    method: 'get',
  })
};
// add
export const xinwentongzhiSave = (params) => {
  return request({
    url: '/admin/xinwentongzhi',
    method: 'post',
    data: params,
  })
};
// updt
export const xinwentongzhiEdit = (id, params) => {
  return request({
    url: '/admin/xinwentongzhi/' + id,
    method: 'PATCH',
    data: params,
  })
};
// delete
export const xinwentongzhiDelete = (id) => {
  return request({
    url: '/admin/xinwentongzhi/' + id,
    method: 'delete',
  })
};
// pldel
export const xinwentongzhiDeleteList = (xinwentongzhis) => {
  return request({
    url: '/admin/xinwentongzhi/deleteList',
    data: { list: xinwentongzhis },
    method: 'post',
  })
};
// all
export const xinwentongzhiAllList = () => {
  return request({
    url: '/admin/xinwentongzhi',
    method: 'get',
  })
};

